专利摘要:
The present invention relates to a method in which a mobile communication terminal executes a real time task, and performs execution of a real time task normally by assigning interrupt requests having different priorities to the interrupt service routine of the real time task and the interrupt service routine of the non real time task. .
公开号:KR20040023439A
申请号:KR1020020055167
申请日:2002-09-11
公开日:2004-03-18
发明作者:박정훈
申请人:삼성전자주식회사;
IPC主号:
专利说明:

How to execute a real-time task of a mobile terminal {METHOD FOR EXECUTING REAL TIME TASK IN MOBILE COMMUNICATION TERMINAL EQUIPMENT}
[6] The present invention relates to a mobile communication terminal, and more particularly, to a method for a mobile communication terminal to execute a real-time task.
[7] The next generation mobile communication terminal has a main goal of enabling not only a simple voice call but also a video call including a multimedia service. The multimedia service is a service that provides exchange of information consisting of text, numerical data, images, moving pictures, and voice.
[8] Accordingly, the current mobile communication terminal can be largely divided into two functional units. One is a communication unit implemented as a modem chip for mobile communication, and the other is a multimedia unit implemented as a multimedia chip for compressing and decompressing multimedia data such as video and audio. The multimedia service is enabled in the mobile communication terminal by performing these two functions by exchanging data with each other using a shared memory such as DRAM (Dynamic Random Access Memory).
[9] The central processing unit (CPU) of the mobile communication terminal controls the multimedia unit using an interrupt request (IRQ) of the multimedia unit to process voice and video data, and to play video, input video, communicate with a modem, and play audio. Perform each multimedia function.
[10] The multimedia unit includes a plurality of tasks for executing a multimedia service, and each task has an interrupt service routine (ISR).
[11] In the above configuration, when the execution time of the interrupt service routine of each multimedia function is shorter than the interrupt generation period of the real time task such as the audio task, there is no problem in the execution of the real time task. However, if the execution time of any interrupt service routine is longer than the interrupt generation period of the real time task, the execution of the real time task will be seriously affected. In this case, in the related art, the interrupt service routine is optimized to reduce the execution time of the interrupt service routine. However, there is a limit to the optimization of such interrupt service routines.
[12] Accordingly, an object of the present invention is to provide a task execution method for normally executing a real-time task.
[13] In order to achieve the above object, the present invention provides a method for executing a real time task of a mobile communication terminal, the process of searching for an interrupt service routine that must be performed to execute each task when a mixed execution request of a non real time task and a real time task is detected. And separating the retrieved interrupt service routine into a real time interrupt service routine and a non real time interrupt service routine, and calculating a minimum time interval at which an interrupt request should be periodically generated for the separated real time interrupt service routine to be normally executed. And calculating an execution time of the separated non-real time service routine, assigning an interrupt request having a higher priority to the real time interrupt service routine if the execution time is longer than the minimum time interval, It assigns an interrupt request having a low priority to an inter-interrupt service routine, and performs the corresponding interrupt service routine according to the occurrence of the interrupt request.
[1] 1 is a configuration diagram of a mobile communication terminal to which the present invention is applied;
[2] 2 is a view showing a process of executing a task according to an embodiment of the present invention;
[3] 3 illustrates normal execution of an audio task in accordance with an embodiment of the present invention;
[4] 4 is a diagram illustrating a time delay when a conventional audio task and another task are executed simultaneously;
[5] 5 illustrates that an audio task and another task are executed simultaneously in accordance with an embodiment of the present invention.
[14] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. And a detailed description of known functions and configurations that may unnecessarily obscure the subject matter of the present invention will be omitted.
[15] The configuration of the mobile communication terminal to which the present invention is applied is made as shown in FIG. 1 is a block diagram of a mobile communication terminal to which the present invention is applied. Referring to FIG. 1, a mobile communication terminal includes a central processing unit (CPU) 10, a multimedia unit 20, a memory unit 30, and a communication unit 40. Is done.
[16] The communication unit 40 modulates and demodulates a voice required for a voice call under the control of the CPU 10 to process voice data, and transmits and receives data necessary for a voice call and a mobile communication service with a base station. Then, the data necessary for the multimedia service is received from the base station and transmitted to the multimedia unit 20 through the memory unit 30.
[17] The memory unit 30 stores program data necessary for controlling the operation of the mobile communication terminal and data generated during control or during execution by the user. The data necessary for executing the multimedia service is stored.
[18] The multimedia unit 20 includes a plurality of multimedia tasks to provide a multimedia service under the control of the CPU 10, and compresses or decompresses multimedia data. The multimedia unit 20 transmits and receives multimedia data with the communication unit 40 through the memory unit 30 and processes sound and image data to perform various multimedia functions such as image reproduction, image input, and audio reproduction. do.
[19] The CPU 10 is responsible for the overall control of the mobile communication terminal, sets the priority of the interrupt request (IRQ) of the multimedia task according to the present invention, and interrupts according to the interrupt request generated by the multimedia unit 20. It provides a multimedia service by performing an internal service request (ISR).
[20] A process of executing the real-time multimedia task in the mobile communication terminal having the above configuration will be described with reference to FIG. 3. For the purpose of understanding, the audio task will be described as an example of the real-time multimedia task.
[21] 3 shows that the audio task is normally executed when there is no other interrupt request. In an embodiment of the present invention, a condition under which one real-time audio task is normally executed is that the execution interval of the audio interrupt service routine is maintained at 365us time interval and 36 audio interrupt requests are generated for 13ms. In other words, an audio task interrupt request is generated once per 365us and accordingly, the CPU 10 must perform an interrupt service routine. According to this condition, the time required for the CPU 10 to normally process one audio task is 13 ms. In addition, according to an embodiment of the present invention, the time occupied by the CPU 10 due to effective data execution of one audio task shown in FIG. 3 is 8 ms among the 13 ms, and the CPU 10 performs another task for the remaining 5 ms. Can be performed.
[22] However, if the interrupt request of the non-real time task is executed while the audio task is executed as described above, the audio task execution time is delayed as shown in FIG. 4. 4 is a diagram illustrating a time delay when a conventional audio task and a non real-time task are executed simultaneously.
[23] According to an embodiment of the present invention, the execution time of the interrupt service routine of the non-real time task shown in FIG. 4 is 636us, which is longer than the time interval at which the audio task interrupt service routine should be periodically performed. In the prior art, audio task interrupt request and non real-time task interrupt request have the same priority. Accordingly, while the interrupt request of the non-real time task is generated and the CPU 10 performs the corresponding interrupt service routine, the interrupt request of the audio task does not occur, thus causing a time delay of the audio task.
[24] That is, as shown in FIG. 4, as five non-real-time task interrupt requests occur while valid data of the audio task is executed, the audio task interrupt request does not occur every 365 us. Accordingly, the time taken to execute all valid data of the audio task also increases to 11.18 ms. In addition, the time required to execute one audio task is delayed to 15.07ms.
[25] In order to solve this problem, the present invention assigns different priorities to the interrupt request of the real time task and the interrupt request of the non real time task to execute each task normally. This will be described with reference to FIGS. 2 and 5.
[26] 2 is a diagram illustrating a process of executing a task according to an exemplary embodiment of the present invention. Referring to FIG. 2, if the CPU 10 detects a multimedia task execution request in step 101, the CPU 10 proceeds to step 103. In step 103, the CPU 10 checks whether the execution request of the task in step 101 is simultaneous execution of the non-real time task and the real time task, and proceeds to step 107 if the non-real time task and the real time task are concurrently executed. If the real-time task is not concurrently executed, proceed to step 105. In step 105, the CPU 10 executes a multimedia task that requires execution.
[27] In operation 107, the CPU 10 searches for an interrupt service routine (ISR) necessary to execute the requested multimedia tasks, and proceeds to operation 109. In step 109, the CPU 10 divides the interrupt service routine found in step 107 into a real time interrupt service routine and a non-real time interrupt service routine, and proceeds to step 111. In step 111, the CPU 10 calculates an execution time of the non real-time interrupt service routine separated in step 107, and proceeds to step 113. In step 113, the CPU 10 calculates an interrupt occurrence time interval of the real-time interrupt service routine separated in step 111, and proceeds to step 115. In step 115, the CPU 10 compares the execution time of the non-real time interrupt service routine with the interrupt occurrence time interval of the real time interrupt service routine, and if the execution time of the non real time interrupt service routine is longer than the interrupt occurrence time interval of the real time interrupt service routine. Proceed to step 117. If the execution time of the non-real time interrupt service routine is shorter than the interrupt occurrence time interval of the real time interrupt service routine, the process proceeds to step 119. In step 117, the CPU 10 allocates a fast interrupt request (FIQ) to the real-time interrupt service routine, and assigns a normal interrupt request (IRQ) to the non-real-time interrupt service routine in order for the real-time task to execute normally. Proceed to step 121. In step 119, since the execution of the non-real time interrupt service routine does not affect the generation of the real time interrupt request, the CPU 10 allocates the normal interrupt request to the non real time interrupt service routine and the real time interrupt service routine, and proceeds to step 121. In step 121, the CPU 10 executes a task by performing a corresponding interrupt service routine according to the occurrence of an interrupt request.
[28] Referring to FIG. 5, the audio task and the non-real time task illustrated in FIG. 4 are normally executed according to the above process. 5 illustrates that an audio task and another task are executed at the same time according to an embodiment of the present invention. According to the present invention, when executing the audio task and the non-real time task simultaneously, the fast interrupt request is allocated to the interrupt service routine of the audio task, and the normal interrupt request is allocated to the non-real time task. Accordingly, the audio task can be normally executed because the interrupt request of the audio task can occur at an appropriate time regardless of the execution of the interrupt service routine of the non-real time task.
[29] In the above description of the present invention, specific embodiments have been described, but various modifications may be made without departing from the scope of the present invention. Therefore, the scope of the present invention should not be defined by the described embodiments, but should be determined by the equivalent of claims and claims.
[30] As described above, the present invention can normally perform execution of a real time task by allocating an interrupt request having a different priority to an interrupt service routine of a real time task and an interrupt service routine of a non real time task.
权利要求:
Claims (2)
[1" claim-type="Currently amended] In the real-time task execution method of the mobile communication terminal,
Searching for an interrupt service routine that must be performed to execute each task when a mixed execution request of the non-real time task and the real time task is detected;
Separating the retrieved interrupt service routine into a real time interrupt service routine and a non real time interrupt service routine;
Calculating a minimum time interval in which an interrupt request should be periodically generated for the separated real-time interrupt service routine to be normally executed;
Calculating an execution time of the separated non real-time service routine;
If the execution time is longer than the minimum time interval, a higher priority interrupt request is allocated to the real time interrupt service routine, a lower priority interrupt request is assigned to a non real time interrupt service routine, and according to the occurrence of the interrupt request. And a process of performing the corresponding interrupt service routine.
[2" claim-type="Currently amended] 2. The method of claim 1, further comprising assigning an interrupt request having the same priority to the real time interrupt service routine and the non real time interrupt service routine if the execution time is shorter than the minimum time interval.
类似技术:
公开号 | 公开日 | 专利标题
US8918595B2|2014-12-23|Enforcing system intentions during memory scheduling
US20150019740A1|2015-01-15|Network Bandwidth Allocation Method and Terminal
DE69922272T2|2005-12-15|Method, apparatus, computer program and computer-readable medium for controlling a display device
US7103735B2|2006-09-05|Methods and apparatus to process cache allocation requests based on priority
JP4214682B2|2009-01-28|Computer and its input / output means
JP4057989B2|2008-03-05|Scheduling method and information processing system
US7162416B2|2007-01-09|Compressed audio stream data decoder memory sharing techniques
US6212562B1|2001-04-03|Criticality and quality of service | based resource management
USRE38134E1|2003-06-03|System for communications where first priority data transfer is not disturbed by second priority data transfer and where allocated bandwidth is removed when process terminates abnormally
KR100426357B1|2004-04-06|Scheduling Method for QoS and Resource Management in Mobile Communication System
JP4356765B2|2009-11-04|Information processing apparatus and method, and program
JP2735800B2|1998-04-02|How to support pause / resume
JP6335845B2|2018-05-30|Dynamic video switching
EP3132355B1|2019-09-04|Fine-grained bandwidth provisioning in a memory controller
US8683471B2|2014-03-25|Highly distributed parallel processing on multi-core device
JP2014179119A|2014-09-25|Methods and systems for allocating interrupts in multithreaded processor
US7110373B2|2006-09-19|Apparatus and method for controlling memory for a base station modem
KR100608590B1|2006-08-03|Network device to enable the service support according to quality of service, network system and method using this
US5732224A|1998-03-24|Computer system having a dedicated multimedia engine including multimedia memory
US5982360A|1999-11-09|Adaptive-selection method for memory access priority control in MPEG processor
JP3975703B2|2007-09-12|Preferential execution control method, apparatus and program for information processing system
US7155716B2|2006-12-26|Weighted and prioritized task scheduler
US20110252429A1|2011-10-13|Opportunistic Multitasking
JP4489399B2|2010-06-23|Data processing method and data processing system in processor
JP4390710B2|2009-12-24|Method and apparatus for time multiplexed processing of multiple digital video programs
同族专利:
公开号 | 公开日
KR100446514B1|2004-09-04|
引用文献:
公开号 | 申请日 | 公开日 | 申请人 | 专利标题
法律状态:
2002-09-11|Application filed by 삼성전자주식회사
2002-09-11|Priority to KR10-2002-0055167A
2004-03-18|Publication of KR20040023439A
2004-09-04|Application granted
2004-09-04|Publication of KR100446514B1
优先权:
申请号 | 申请日 | 专利标题
KR10-2002-0055167A|KR100446514B1|2002-09-11|2002-09-11|Method for executing real time task in mobile communication terminal equipment|
[返回顶部]